#__author__ = 'Ion Morozan'
#__author__ = 'Hector Fernandez'


class Virtual_Machine():

    def __init__(self, ip, slo_violations, served_pages, type_instance='small'):
        self.ip = ip
        self.type_instance = type_instance
        self.slo_violations = slo_violations
        self.served_pages = served_pages

    def getIP(self):
        return self.ip

    def printVM_Info(self):
        return 'VM(ip=%s, slo_violations=%d, pages_served=%d)' % (str(self.ip), self.slo_violations, self.pages_served)
